package com.ifast.leave.service;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.ifast.album.domain.AlbumPhoto;
import com.ifast.album.domain.AlbumPhotoMsg;
import com.ifast.common.utils.Const;
import com.luculent.util.extension.api.PageResult;
import com.luculent.util.extension.api.Result;

/**
 *@Description: 照片
 *@Author: shíQíang㊚
 *@Since: 2019年1月5日上午10:44:23
 */
public interface AlbumPhotoService extends IService<AlbumPhoto> {
	/**
	 * 设置封面
	 */
	public Result<?> cover(String albumId,String photoId);
	
	/**
	 * 照片上传 有积分
	 */
	public Result<?> upload(String userId,String dwCode,String albumId,String msg, HttpServletRequest request) throws IOException;
	
	/**
	 * 照片上传 后台用
	 */
	public Result<?> uploadAdmin(String userId,String dwCode,String albumId,String msg, HttpServletRequest request) throws IOException;
	
	/**
	 * 轮播图上传
	 */
	public Result<?> upload(Const.album albumType,String userId,String deptId,String dwCode,String msg, HttpServletRequest request) throws IOException;
	
	/**
	 * 照片列表 
	 */
	public PageResult<?> pageNormalList(String userId,String topDeptId,String albumId,String nian,String yue,String ri,Page<AlbumPhotoMsg> page);
	/**
	 * 照片列表 
	 */
	public PageResult<?> pageLoopList(String userId,String topDeptId,String nian,String yue,String ri,Page<AlbumPhoto> page,String url);
	/**
	 * 照片列表 
	 */
	public PageResult<?> pageUserLoopList(String userId, String topDeptId,String nian, String yue,String ri, Page<AlbumPhoto> page,String url);
	
	/**
	 * 照片删除 
	 */
	public Result<?> remove(String photoId);
	/**
	 * 照片修改
	 */
	public Result<?> editPhoto(String userId,String topDeptId,String albumId,String photoId,HttpServletRequest request) throws IOException;
	/**
	 * 编辑照片说明
	 */
	public Result<?> editMsg(String userId,String dwCode,String msgId,String msg);
}
